import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Login',
    component: () => import('./components/login.vue')
  },
  {
    path: '/user',
    name: "User",
    component: () => import('./components/user.vue')
  },

]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router